package com.deng.util
{
	import mx.utils.StringUtil;
	
	public class NumberCheck
	{
		public function NumberCheck()
		{
		}
		public static function isNumeric(src:String):Boolean{
			if (isEmpty(src)){
				return false;
			}
			var regx:RegExp = /^[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$/;
			return regx.test(src);
		}
		private static function isEmpty(str:String):Boolean{
   			if(str == null)return true;
   			str = StringUtil.trim(str);
   			if(str == null || str.length<=0)return true;
   			return false;
  		}

	}
}